assert_eq failure message now multi-line related to rust pull request 42541.
authorGiles Cope <gilescope@gmail.com>
Fri, 16 Jun 2017 07:40:05 +0000 (08:40 +0100)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 12 Jul 2017 22:58:37 +0000 (15:58 -0700)
tests/bench.rs

index 626bd7ce46454c9e610d056ca03bb84d44d42dff..53220097a634fb33494cd89eb1667258eb6ab172 100644 (file)
@@ -241,11 +241,9 @@ fn cargo_bench_failing_test() {
 [COMPILING] foo v0.5.0 ({})
 [FINISHED] release [optimized] target(s) in [..]
 [RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
-thread '[..]' panicked at 'assertion failed: \
-    `(left == right)`[..]", p.url()))
+thread '[..]' panicked at 'assertion failed: `(left == right)`[..]", p.url()))
                        .with_stderr_contains("[..]left: `\"hello\"`[..]")
                        .with_stderr_contains("[..]right: `\"nope\"`[..]")
-                       .with_stderr_contains("[..]src[/]foo.rs:14")
                        .with_status(101));
 }
 
@@ -295,7 +293,7 @@ fn bench_with_lib_dep() {
 [FINISHED] release [optimized] target(s) in [..]
 [RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
 [RUNNING] target[/]release[/]deps[/]baz-[..][EXE]", p.url()))
-                       .with_stdout_contains("test lib_bench ... bench: [..]")                     
+                       .with_stdout_contains("test lib_bench ... bench: [..]")
                        .with_stdout_contains("test bin_bench ... bench: [..]"));
 }
 
@@ -695,7 +693,7 @@ fn bench_dylib() {
 [RUNNING] `[..]target[/]release[/]deps[/]foo-[..][EXE] --bench`
 [RUNNING] `[..]target[/]release[/]deps[/]bench-[..][EXE] --bench`", dir = p.url()))
                        .with_stdout_contains_n("test foo ... bench: [..]", 2));
-    
+
     p.root().move_into_the_past();
     assert_that(p.cargo("bench").arg("-v"),
                 execs().with_status(0)